import request from '@/utils/request'

export function getListApi(data) {
  return request({
    url: '/lesson/pageInfo',
    method: 'post',
    data
  })
}

export function saveApi(data) {
  return request({
    url: '/lesson/save',
    method: 'post',
    data
  })
}

export function changeStateApi(data) {
  return request({
    url: '/lesson/changeState',
    method: 'post',
    data
  })
}

export function deleteActivityApi(data) {
  return request({
    url: '/lesson/batchDelete',
    method: 'post',
    data
  })
}

export function getDetailApi(id) {
  return request({
    url: `/lesson/detail/${id}`,
    method: 'post',
  })
}